<?php

namespace app\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\api\logic\ApiStockUpLogic;
class StockUpConsummer extends Command
{

        protected function configure()
        {
                $this->setName('StockUpConsummer')
                ->setDescription('StockUpConsummer');
        }

        protected function execute(Input $input, Output $output)
        {
                //每日洗数据--每日可用库存--新规则
                // (new ApiStockUpLogic())->inventory_quantity_new();

                //每日洗数据--sku销量排行榜
                (new ApiStockUpLogic())->sku_rank();
                //每日洗数据--补货备货
                (new ApiStockUpLogic())->purchase_suggest_plan();
                //每日维护库存需要飞书提醒到个人
                (new ApiStockUpLogic())->product_inventory_remind();
                //飞书发预警信息-建议备货量
                (new ApiStockUpLogic())->SuggestedStockingQuantity();
                //拉取下单备货多维表格
                (new ApiStockUpLogic())->getTablerecordsPants();
        }
}